package com.gt.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.gt.app.domain.EsTreatFlowList;
import com.gt.app.domain.EsTreatInfo;
import com.gt.app.mapper.EsTreatFlowListMapper;
import com.gt.app.service.EsTreatFlowListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author caidesheng
 */
@Slf4j
@Service
public class EsTreatFlowListServiceImpl extends ServiceImpl<EsTreatFlowListMapper, EsTreatFlowList> implements EsTreatFlowListService {

    @Override
    public List<EsTreatFlowList> esTreatFlowListService(String checkId) {

        LambdaQueryWrapper<EsTreatFlowList> wrapper = new LambdaQueryWrapper<EsTreatFlowList>().eq(EsTreatFlowList::getEsCheckId, checkId);
        List<EsTreatFlowList> treatFlowList = this.list(wrapper);
//        if (treatFlowList == null){
//            EsTreatFlowList esTreatFlowList = new EsTreatFlowList();
//            esTreatFlowList.setLists("治疗报告");
//        }
        return treatFlowList;
    }
}
